﻿<%@ Page  Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Core.DAL.tSite_Link>" %>

<asp:Content ID="cHead" ContentPlaceHolderID="cphHead" runat="server">
    <% this.Page.Title = (string)ViewData["PageTitle"]; %>
</asp:Content>

<asp:Content ID="cJScripts" ContentPlaceHolderID="cphJScripts" runat="server">
    <script type="text/javascript">
        $(function () {
            $("a.green").click(function () {
                $(this).addClass("loading");
                $('#adminForm form:eq(0)').submit();
            });

            $("a.blue").click(function () {
                $('#adminForm form')[0].reset();
            });
        });
    </script>
</asp:Content>

<asp:Content ID="cMainContent" ContentPlaceHolderID="cphMainContent" runat="server">
<div id="adminForm">
    <%= Html.ValidationSummary(ScoutNET.Resources.Master_Form_ErrorMessage)%>

    <% using (Html.BeginForm()) {%>
        <p>
            <label for="title">Title :</label>
            <%= Html.TextBox("title", Model.Title, new { @class = "small", maxlength = "50" })%>
        </p>
        <p>
            <label for="description">Description :</label>
            <%= Html.TextArea("description", Model.Description, new { @class = "textAreaSmall", maxlength = "250" })%>
        </p>
       
        <p>
            <label for="url">URL :</label>
            <%= Html.TextBox("url", Model.URL, new { @class = "large", maxlength = "250" })%>
        </p>
        
        <div class="blockButton">
		    <a class="mediumBtn green awesome" href="javascript:void(0);" title="<%= ScoutNET.Resources.Master_Button_Edit %>"><%= ScoutNET.Resources.Master_Button_Edit %></a>
            <a class="mediumBtn blue awesome" href="javascript:void(0);" title="<%= ScoutNET.Resources.Master_Button_Reset %>"><%= ScoutNET.Resources.Master_Button_Reset %></a>
	    </div>
    <% } %>
</div>
</asp:Content>
